IsAlertEnabled(alertName)

Basic and Crystal syntax.

Arguments

alertName is the name of an alert (in quotation marks) that you've already created.

Locate the available alerts in the Alert Names list, which appears in the Formula Editor's Functions tree once you've created an alert.

Returns

Boolean value indicating whether or not the alert is enabled.

Tip:    To enable or disable an existing alert, click Create Alerts on the Report Menu. Select the desired alert and click Edit. In the Edit Alert dialog box, select or clear the Enabled option.

Examples

Crystal Syntax:

If IsAlertEnabled("myAlert") Then
    AlertMessage("myAlert")
Else
    "myAlert is disabled"

Basic Syntax:

If IsAlertEnabled("myAlert") Then
    Formula = AlertMessage("myAlert")
Else
    Formula = "myAlert is disabled"
End If

Use this formula to display a message that lets report users know whether or not an alert is enabled. For instance, open the sample report called Alerting.rpt. Create the formula, replacing "myAlert" with "Sales" (which is the name of the alert in the sample report). Then drag the formula field into the Report Header section. By default, the Sales alert is enabled, so its alert message will appear in the Report Header. If you disable the alert (in the Edit Alert dialog box), the message displayed in the report will change to the "disabled" message that you specified in the formula.

Comment

Any formula that references an alert becomes a print time formula.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com